﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Customer.aspx.cs" Inherits="ZLDC.Estate.CM.Customer" %>

<%@ Register Src="../UserControl/Build_Autocomplete.ascx" TagName="Build_Autocomplete"
    TagPrefix="uc1" %>
<%@ Register Src="../UserControl/Build_Autocomplete2.ascx" TagName="Build_Autocomplete2"
    TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>客源录入</title>

    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../js/jquery.autocomplete/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
    <link href="../js/jquery/style/jquery.simple.tree.css" rel="stylesheet" type="text/css" />
   
</head>
<body>
    <form id="form1" runat="server" action="../Handler/HandlerCustomer.ashx?act=CustomerSave"
    enctype="multipart/form-data" method="post" autocomplete="off">
    <table width="100%" border="0" cellpadding="0" cellspacing="1">
        <tr>
            <td height="30" bgcolor="#F7F7F7" class="button1" style="padding-left: 10px;">
                <img src="../images/zlTitle.gif" width="13" align="middle" /><a href="CustomerManager.aspx">客源列表</a>
                <span class="hbdot">&raquo;</span>
                
                <label id="title"></label>
               <%-- <input id="title" readonly style="border-top-width: 0px; border-right-width: 0px;
                    border-bottom-width: 0px; background-color: #F7F7F7; border-left-width: 0px;
                    font-size: small; font-weight: bold;" type="text" value="" />--%>
            </td>
        </tr>
    </table>
    <table id='tableList1' width='100%' border='0' cellpadding='0' cellspacing='1'>
        <tr>
            <td height='25'    bgcolor="#99ccff" colspan="4" >
                <strong><font color="">基本资料</font></strong>
            </td>
        </tr>
        <tr>
            <td height='25' bgcolor="#F7F7F7" align="left"   style="width:24%" >
                &nbsp;<font color="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 用途</font>
                <select id="usage"  style="width:50%" runat="server" class="textstyle1" onclick="DivDisplay();"
                    name="usage">
                </select>
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                <font color="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 客户</font>
                <input id="customer" name="customer" style="width:50%" class="textstyle1" type="text" />
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                &nbsp;<font color="red">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 电话 </font>
                <input id="customerTel" class="textstyle1" onblur="chkForm(this);CheckTel();" style="width:50%" name="customerTel"
                    type="text" />
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                职业
                <select id="occupation" name="occupation" style="width:50%" class="textstyle1" runat="server">
                </select>
            </td>
        </tr>
        <tr>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 等级
                <select id="customerClass" style="width:50%" name="customerClass" class="textstyle1" runat="server">
                </select>
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                &nbsp;&nbsp; 代理人
           
                <input id="agent" name="agent" style="width:50%" class="textstyle1" type="text" />
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 电话                 <input id="agentTel" name="agentTel" onblur="chkForm(this);" style="width:50%" class="textstyle1" type="text" />
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                <font color="red">来源</font>
                <select id="infoFrom" runat="server" style="width:50%" class="textstyle1" name="infoFrom">
                    <option></option>
                </select>
            </td>
        </tr>
        <tr>
            <td height='25' bgcolor="#F7F7F7" align="left"  colspan="2" style="width:48%">
                <font color="red">&nbsp;&nbsp; 购买动机</font>
                <select id="buyingMotive" runat="server" class="textstyle1" name="buyingMotive">
                    <option></option>
                </select>
            </td>
           
            <td height='25' bgcolor="#F7F7F7" align="left" colspan="2" style="width:48%">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 备注                 <textarea id="remark" name="remark" rows="3"  
                    style="width: 54%; height:30px"></textarea>
            </td>
            
        </tr>
        <tr>
            <td height='25' bgcolor="#99ccff" colspan="4">
                <strong><font color="">意向</font></strong>
            </td>
        </tr>
        <tr>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width: 24%">
                <font color="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 交易</font>
                <select id="tradetype" runat="server" style="width:50%" onchange="SelectTradetype();" class="textstyle1"
                    name="tradetype">
                </select>
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;类型
                <select id="type" runat="server" style="width:50%" class="textstyle1" name="type">
                </select>
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 状态                 <select id="status" style="width:50%" runat="server" class="textstyle1" name="status0">
                </select></td>
            <td bgcolor="#F7F7F7"  style="width:24%">
                &nbsp;</td>
        </tr>
        
        <tr>
            <td height='25' bgcolor="#F7F7F7" align="left"  colspan="2" style="width:48%">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 楼盘
                <uc2:Build_Autocomplete2 ID="Build_Autocomplete21"  width="60%"  runat="server" />
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                付佣方式
             <select id="payType" runat="server" style="width:50%" class="textstyle1" name="payType">
                </select>
            </td>
           
            <td bgcolor="#F7F7F7"  style="width:24%">
               
            </td>
        </tr>
        <tr>
            <td height='25' bgcolor="#F7F7F7" align="left"  colspan="2" style="width:48%">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 城区
                <input id="dname" name="dname" style="width: 55%" class="textstyle1" type="text" /><select
                    id="Sdame" runat="server" name="Sdame" onchange="loadCity();" >
                </select>
                <%-- <div runat="server" id="divdname">
                </div>--%>
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" colspan="2" style="width:48%">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 片区 <input id="areaname" type="text" name="areaname" class="textstyle1"
                    style="width: 50%" />
                <a href="javascript:ShowDialog('Area.aspx')">请选择</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td height='25' bgcolor="#F7F7F7" align="left"  colspan="2" style="width:48%">
              <div id="divhx1">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;户型
                    
                    <input id="room1" name="room1" style="width:20%" type="text" onkeyup="IsNum(this);" class="textstyle1" />~<input
                        id="room" name="room"  style="width:20%" class="textstyle1" onkeyup="IsNum(this);" type="text" />房
                </div>
            </td>
           
            <td height='25' bgcolor="#F7F7F7" align="left" colspan="2" style="width:48%">      
                 <div id="divStyle">   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 样式
                <select id="houseStyle" style="width:25%" runat="server" class="textstyle1" name="houseStyle">
                </select>
                </div> 
            </td>
        </tr>
        <tr>
            <td height='25' bgcolor="#F7F7F7" align="left" colspan="2" style="width:48%">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;朝向
                <input id="Direct" type="text" class="textstyle1" readonly name="Direct"   /><select
                    id="sDirect"  style="width:20%" onchange="SelectValue();" runat="server" class="textstyle1"
                    name="sDirect">
                </select>
               
            </td>
          
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 楼层          
                <input id="minFloor" type="text" style="width:20%" onkeyup="IsNum(this)" name="minFloor" class="textstyle1" />~<input
                    id="maxFloor" type="text" style="width:20%" onkeyup="IsNum(this)" class="textstyle1" name="maxFloor" />层 
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                <div id="divFitment">
                    &nbsp;装修
                &nbsp;<select id="fitment" style="width:50%" class="textstyle1" runat="server" name="fitment">
                </select>
                </div>
                </td>
        </tr>
        <tr>
            <td bgcolor="#F7F7F7" align="left"  colspan="2" class="style1">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 面积
                <input id="minAcreage" style="width:20%" name="minAcreage" class="textstyle1" type="text" onkeyup="IsNum(this)" />~<input
                    id="maxAcreage" style="width:20%" type="text" onkeyup="IsNum(this)" class="textstyle1" name="maxAcreage" />㎡
            </td>
            <td bgcolor="#F7F7F7" align="left" colspan="2" class="style1">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 价格
                <input id="minPrice" name="minPrice" class="textstyle1" style="width:20%" type="text" onkeyup="IsNum(this);" />~<input
                    id="maxPrice" name="maxPrice" style="width:20%" class="textstyle1" onkeyup="IsNum(this);" type="text" />
                <select id="priceUnit" name="priceUnit">
                    <option value="元">元</option>
                    <option value="万元" selected>万元</option>
                </select>
            </td>
        </tr>
        <tr>
            <td height='25' bgcolor="#F7F7F7" align="left"  colspan="2" style="width:48%">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 登客人
                <input id="markname" name="markname" runat="server" class="textstyle1" readonly type="text" />
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left"  colspan="2" style="width:48%">
                               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                部门
                <input id="markdept" name="markdept" runat="server" class="textstyle1" readonly type="text" />
            </td>
          
        </tr>
        <tr id="tr_change" style="display:none; ">
            <td height='25' bgcolor="#F7F7F7" align="left" style="width: 24%">
                <font color='red'>&nbsp; &nbsp;接收部门</font>
                <div id="dvDept" style="overflow: auto; z-index: 2000; position: absolute; display: none;
                    border: 1px; border-style: outset; background-color: #ffffff; height: 145px;
                    width: 200px; text-align: left;">
                    <asp:Literal ID="ltlDeptTree" runat="server"></asp:Literal>
                </div>
                <input id="umainclass" class="textstyle1" title='拼音首字母提示' style="width: 48%" name="umainclass"
                    onblur="selDU()" />
                <a href="#" id="selDept" onclick="javascript:showDept('dvDept')">↓</a>
                <input id="utxtmain" runat="server" style="display: none;" />
            </td>
            <td height='25' bgcolor="#F7F7F7" align="left" style="width:24%">
                <font color='red'>&nbsp;&nbsp; 接收人</font>
                <input id="usubclass" class="textstyle1" title='拼音首字母提示,格式:姓名[工号,部门]' style="width: 100px"
                    name="umainclass" onblur="selDU()" />
                <input id="utxtsub" name="utxtsub" runat="server" class="textstyle1" style="display: none;" />
            </td>
            <td height='25' bgcolor="#F7F7F7" width="44%" align="left" colspan="2">
               转介备注                 
               <textarea id="mark3" name="mark3" rows="3"  
                    style="width: 54%; height:30px" cols="20"></textarea></td>
            
        </tr>
        <tr>
         <%--   <td height='25' style="text-align: center; width: 44%" bgcolor="#F7F7F7" colspan="2">
                <img alt="" src="../images/bot2.gif" style="cursor: pointer;" onclick="return submitOk()" />
            </td>
            <td height='25' style="text-align: center; width: 44%" bgcolor="#F7F7F7" colspan="2">
                <img alt="" src="../images/bot11.gif" style="cursor: pointer;" onclick="javascript:history.go(-1);" />
            </td>--%>
            <td height='25' style="text-align: center; width: 44%" bgcolor="#F7F7F7" colspan="2">
             <div>   <input id="Submit1" type="button" value="提交" onclick="return submitOk()" class="button_bak"  style="cursor: pointer;"/></div>
            </td>
            <td height='25' style="text-align: center; width: 44%" bgcolor="#F7F7F7" colspan="2">
               <div  id="divRest"><input id="Reset2" type="reset" value="重置" style="cursor: pointer;" 
                    onclick="window.location.reload();" class="button_bak" /></div>
               <div id="divReturn" style="display:none"><input id="reset1" type="reset" onclick="javascript:ReBack();" value="返回" class="button_bak" style="cursor: pointer;" /></div></td>
        
        </tr>
    </table>
    <input id="cid" name="cid" type="hidden" />
    <input id="areaid" name="areaid" type="hidden" />
    <input id="did" name="did" type="hidden" />
    <input id="hTypeID" name="hTypeID" type="hidden" />
    </form>

    <script src="../js/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../js/LexunJS.js" type="text/javascript"></script>

    <script src="../js/jquery.autocomplete/jquery.autocomplete.min.js" type="text/javascript"></script>

    <script src="../js/jquery/jquery.simple.tree.js" type="text/javascript"></script>

    <script src="../js/cm_customerchange.js" type="text/javascript"></script>

    <script src="js/CustomerJS.min.js?v=20111108" type="text/javascript"></script>

</body>
</html>
